<!DOCTYPE html>
<!--4、将字符串数组用|或其他符号分隔（[‘a’,’b’]——   a|b）-->
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var num="1,2,5,6,9,4,5";
			document.write("原数组："+num);
			var num2=num.split(",");
			document.write("<br /><br />");
			for (var i=0;i<num2.length;i++) {
				document.write(num2[i]+"|");
			}
		</script>
	</body>
</html>
